package com.atzhiguo.springcloud.service;

import com.atzhiguo.springcloud.entities.CommonResult;
import com.atzhiguo.springcloud.entities.Payment;
import org.springframework.stereotype.Component;

/**
 * @author zhiguo
 * @description
 * @create 2020/10/23 16:24
 */
@Component
public class PaymentFallbackServiceImpl implements PaymentService {
    @Override
    public CommonResult<Payment> PaymentSQL(Long id) {
        return new CommonResult<>(444444444, "服务降级返回，----PaymentFallbackServiceImpl", new Payment(id, "errorSerial"));
    }
}
